package com.yuanqi.java.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.yuanqi.java.dto.PurchaseOrderAuditDTO;
import com.yuanqi.java.dto.PurchaseOrderDTO;
import com.yuanqi.java.dto.PurchaseOrderItemDTO;
import com.yuanqi.java.entity.PurchaseOrder;

import java.util.List;

/**
 * <p>
 * 采购订单主表 服务类
 * </p>
 *
 * @author author
 * @since 2025-08-27
 */
public interface IPurchaseOrderService extends IService<PurchaseOrder> {
    //新增采购订单
     Long createPurchaseOrder(PurchaseOrderDTO purchaseOrderDTO);
    //删除采购订单
     boolean deletePurchaseOrder(Long orderId);
    //提交审核
    boolean submitForAudit(Long orderId);
    //审核采购订单
    boolean auditPurchaseOrder(PurchaseOrderAuditDTO auditDTO);
    //获取采购订单详情
    PurchaseOrderDTO getPurchaseOrderDetail(Long orderId);

}